//
//  JYConst.swift
//  01.weibo
//
//  Created by 谢玉锋 on 16/7/10.
//  Copyright © 2016年 itheima.cn. All rights reserved.
//


//注意:以后实际开发中要用到这种方式

import UIKit

func JYPrint(items: Any, file: String = __FILE__, line: Int = __LINE__, function: String = __FUNCTION__) {
    #if DEBUG
        print((file as NSString).lastPathComponent + ",[\(line)]行,方法名称：" + function + "输出: \(items)")
    #endif
}


let JYTabBarButtonCount = 5

let GlobalColor = UIColor.whiteColor()

// MARK: - 授权相关
/// 加载授权登录界面的url地址
let OauthUrl = "https://api.weibo.com/oauth2/authorize"

/// 请应用时分配的AppKey
let client_id = "4278292864"//"498235497"

//申请应用时分配的AppSecret
let client_secret = "8b3f16e17457bcad0131f69e401cb927"

/// 授权回调地址
let redirect_uri = "http://www.baidu.com/"

//请求的类型，填写authorization_code
let grant_type = "authorization_code"

//请求accessToken的URL

let accessTokenURLString = "https://api.weibo.com/oauth2/access_token"

//路径
let accountPath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask.UserDomainMask, true).last!.stringByAppendingString("/account.plist")

//欢迎界面label字体大小
let labelFont = CGFloat(14)

//默认动画时间
let DefaultAnimationTime: NSTimeInterval = 0.25

//新特性cell的个数
let NumberOfNewFeatureItem = 4

//新题型界面Button字体大小
let buttonFont = CGFloat(18)

//欢迎用户昵称label字体大小
let NamelabelFont = CGFloat(14)

// 时间文字大小
let JYStatusTimeFontSize: CGFloat = 11

// Text文字大小
let JYTextFontSize: CGFloat = 15

//微博内容间距
let JYStatusCellMargin: CGFloat = 8

//微博头像大小
let JYStatusIcon: CGFloat = 35

//提示微博条数label高度
let TipsLabelHeight:CGFloat = 44











/*
URL: https://api.weibo.com/oauth2/authorize
client_id
App Key：1458512798
redirect_uri 回调地址
App Secret：8f254231bd2aef248cb2b64b19b9eff6
授权回调页：http://www.baidu.com/
*/


